/*
 * @Description: 移交统计接口
 * @Author: Zzt
 * @Date: 2022-12-07 17:35:35
 * @LastEditTime: 2023-03-04 11:31:01
 */
import { IPageQuery } from '@/interfaces/global';
import { statRequest } from '@/utils/request';

/* 档案接收按档案类型统计 */
export interface IReceiveAndTransferParams {
  archiveTypeIds?: any[];
  byear?: string;
  categorys?: any[];
  eyear?: string;
  fondsId?: number;
  fondsIds?: any[];
  formats?: any[];
  hondWay?: number;
  registrants?: any[];
  retentionPeriods?: any[];
  secrets?: any[];
  testPersons: any[];
  type?: number;
  units?: any[];
  year?: string;
}
/* 档案移交统计柱状图 */
export function transferForStat(data: IReceiveAndTransferParams) {
  return statRequest({
    url: `/archive-transfer-receive/transferForStat/`,
    method: 'post',
    data
  });
}

export function transferForTable(data: IPageQuery<IReceiveAndTransferParams>) {
  return statRequest({
    url: `/archive-transfer-receive/transferForTable/`,
    method: 'post',
    data
  });
}
/* 接收档案类型统计柱状图  */
export function receiveForStat(data: IReceiveAndTransferParams) {
  return statRequest({
    url: `/archive-transfer-receive/receiveForStat/`,
    method: 'post',
    data
  });
}
export function receiveForTable(data: IPageQuery<IReceiveAndTransferParams>) {
  return statRequest({
    url: `/archive-transfer-receive/receiveForTable/`,
    method: 'post',
    data
  });
}
